﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AreaRules.aspx.cs" Inherits="Catering.Catering_Page.system.AreaRules" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link href="../../Style/center.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/zhezhao.js" type="text/javascript"></script>
    <link href="../../Style/zhezhao.css" rel="stylesheet" type="text/css" />
    <script src="../../Scripts/jquery-1.4.1.js" type="text/javascript"></script>
    <link href="../../Style/sysData.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    a{ text-decoration:none;}
    </style> 
</head>
<body>
    <form id="form1" runat="server">
    <asp:HiddenField ID="HidID" runat="server" />
    <div style="height:36px; line-height:36px; font-size:13px;">&nbsp;当前位置：区域配送规则</div>
    <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "System_Data.aspx", "配送规则操作"))
      { %>
    <div class="btn_list" style="margin-top:0px;">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
            <tr>
                <td align="right" height="30">
                    <a href="AreaRules_Edit.aspx" class="input_btn_a">添　加</a>
                </td>
                <td width="10"></td>
            </tr>
        </table>
    </div>
    <%} %>
    <div class="data_css">
        <table width="100%" border="1" cellpadding="0" cellspacing="0">
            <thead>
                <tr>
                    <th>
                        名称
                    </th>
                    <th>
                        区域
                    </th>
                    <th>
                        编辑
                    </th>
                    <th>
                        删除
                    </th>
                </tr>
            </thead>
            <tbody>
                <asp:Repeater ID="Rep_OperationArea" runat="server" OnItemCommand="Rep_ItemCommand">
                    <ItemTemplate>
                        <tr>
                            <td>
                                <%#Eval("ARName")%>
                            </td>
                            <td>
                                <%#GetAreaNameByID(Eval("AreaID").ToString())%>&nbsp;
                            </td>
                            <%if (Catering.Toolss.IsVerification(Session["RoleID"].ToString(), "System_Data.aspx", "配送规则操作"))
                                  { %>
                            <td>
                                <a href="AreaRules_Edit.aspx?ARID=<%#Eval("ARID")%>"><img src="../../Images/file.gif" style="cursor: pointer;" /></a>
                            </td>
                            <td>
                                <asp:ImageButton ID="img_btn" runat="server" ImageUrl="../../Images/trash.gif" OnClientClick="return confirm('确认删除？');"
                                    CommandArgument='<%#Eval("ARID")%>' CommandName="del" />
                            </td>
                            <%}
                                  else
                                  { %>
                                  <td>&nbsp;</td><td>&nbsp;</td>
                                <%} %>
                        </tr>
                    </ItemTemplate>
                </asp:Repeater>
            </tbody>
        </table>
    </div>
    </form>
</body>
</html>
